<template>
<!--<h1>容器组件</h1>-->

  <div class="common-layout">
    <el-container>
      <el-header>后台管理系统</el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu text-color="dodgerblue" @select="handleSelect" active-text-color="red">
            <el-menu-item index="1">员工管理</el-menu-item>
            <el-menu-item index="2">轮播图管理</el-menu-item>
            <el-menu-item index="3">商品管理</el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
            <el-table :data="tableData" style="width: 100%" >
              <el-table-column type="index" label="编号" width="80" align="center"></el-table-column>
              <el-table-column prop="name" label="姓名" align="center"/>
              <el-table-column prop="age" label="年龄" align="center"/>
              <el-table-column prop="gender" label="性别" align="center"/>
              <el-table-column prop="tel" label="手机" align="center"/>
              <el-table-column prop="address" label="地址" align="center"/>
            </el-table>
        </el-main>
      </el-container>
    </el-container>
  </div>


</template>

<script setup>
import {ref} from 'vue';

const tableData = ref([
  {
      name: '张三',
      age: '18',
      gender: '男',
      tel:'13167023445',
      address:"北京市大钟寺校区"
  },
  {
    name: '张三',
    age: '18',
    gender: '男',
    tel:'13167023445',
    address:"北京市大钟寺校区"
  },
  {
    name: '张三',
    age: '18',
    gender: '男',
    tel:'13167023445',
    address:"北京市大钟寺校区"
  },
  {
    name: '张三',
    age: '18',
    gender: '男',
    tel:'13167023445',
    address:"北京市大钟寺校区"
  },
]);
const handleSelect = (key, keyPath) => {
  console.log(key, keyPath)
}
</script>


<style scoped>
.el-header{
  background-color: dodgerblue;
  color: aliceblue;
  font-size: 35px;
}
</style>